package com.smedi.ismedi.inmail.core.domain.service.impl;

import com.smedi.ismedi.authority.starter.util.AuthorityUtil;
import com.smedi.ismedi.inmail.core.domain.aggregatemodel.LoginLog;
import com.smedi.ismedi.inmail.core.domain.aggregatemodel.OperationLog;
import com.smedi.ismedi.inmail.core.domain.aggregatemodel.Person;
import com.smedi.ismedi.inmail.core.domain.repository.LoginLogRepository;
import com.smedi.ismedi.inmail.core.domain.repository.OperationLogRepository;
import com.smedi.ismedi.inmail.core.domain.service.LoginLogDomainService;
import com.smedi.ismedi.inmail.core.domain.service.OperationLogDomainService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * 业务服务实现类
 *
 * @author jiangqinxuan   niuyanling
 * @date 2021/07/27
 */
@Slf4j
@Service
@AllArgsConstructor
public class OperationLogDomainServiceImpl implements OperationLogDomainService {
    private final OperationLogRepository operationLogRepository;

    @Override
    public Long create(OperationLog operationLog) {
        return operationLogRepository.create(operationLog);
    }
}
